#!/bin/bash
pl_dir=`dirname ${0}`
. /etc/rc.common

StartService( ){
	perl -I/opt/local/lib/perl5/site_perl/5.12.4/ $pl_dir/dnsdynamic.pl start
}

StopService( )
{
	perl -I/opt/local/lib/perl5/site_perl/5.12.4/ $pl_dir/dnsdynamic.pl stop
}

RestartService( )
{
	StopService
	StartService
}

RunService "$1"
